package com.hk.service.order;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.order.OrderCheck;
import com.hk.commons.entity.order.OrderInfo;
import com.hk.commons.vo.OrderCheckMsg;

public interface IOrderCheck{
	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(OrderCheck t);
	
	
	/**
	 * 根据订单保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(OrderInfo orderInfo);
	
	public Long createOrderCheck(Long orderId);
	
	public List<OrderCheck> findByFilter(HqlFilter hqlFilter);
	
	/**
	 * 删除记录
	 * @param orderCheck
	 */
	public void  delete(OrderCheck orderCheck);
	
	/**
	 * 删除记录
	 * @param orderCheck
	 */
	public void  delete(OrderInfo orderInfo);
	
	default OrderCheckMsg create(Long productId){
		return null;
	};
	
	/**
	 * 获取订单的相关信息，并且返回结果为字符串
	 * @param orderId
	 * @return
	 */
	public OrderCheckMsg getStrInfoById(Long orderId);
	
	public List<OrderCheck> query(HqlFilter hqlFilter);
	
	public Long countByFilter(HqlFilter hqlFilter);
	
	public OrderCheckMsg getMsg(OrderCheck orderCheck);
	
	public void test();
}
